-
-
Notifications
You must be signed in to change notification settings - Fork 962
Centralizing Gradle Logic #15114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 7.0.x
Are you sure you want to change the base?
Centralizing Gradle Logic #15114
Conversation
@matrei the more I look at the codeStyle work you did, I think we should create a plugin that exists in another git repo - then apply that plugin across all of the apache/grails projects. What are your thoughts on this? If we did that, then we could also apply it to our gradle plugins in the build-logic project ... |
@matrei @jamesfredley And one more thought: I'm strongly considering moving the publish artifacts task logic & the checksum logic into the grails-publish plugin. This would help eliminate the duplication across all of the projects. What are your thoughts on this? |
The less code there is to maintain in each individual project the better! Keep it DRY! |
@matrei @jamesfredley
We agreed a few weeks ago to start migrating to internal gradle plugins in buildSrc. This is my initial work to refactor the sbom & publish configuration into a centralized location. Note: since we're using 3 separate, composite gradle builds, I had to refactor into a 'build-logic' build that's then included. This is similar to how groovy manages their build.
Some highlights:
I intend to restructure the rest of our scripts into this format and make them order agnostic using withPlugin() like these. What are the initial thoughts on this approach?